package vip.websky.project.user.error;

import vip.websky.project.common.error.ErrorCode;

/**
 *
 * 用户模块错误code
 *
 * 01 用户模块
 * 0101 用户子模块
 * 0102
 *
 * @Author Yong.Yang E-mail:yang2048@qq.com
 * @Create 2017/8/13-16:05
 */
public class UserErrorCode extends ErrorCode {

    public final static String USER_ADD_FAIL = "010101";
    public final static String USER_NOT_EXIST = "010102";
    public final static String USER_EDIT_FAIL = "010103";
    public final static String USER_IS_EXIST = "010104";
    public final static String LOGIN_PASS_EXIST = "010105";
    public final static String USER_STATUS_EXIST = "010106";

    public final static String ROLE_ADD_FAIL = "010201";
    public final static String ROLE_NOT_EXIST = "010202";
    public final static String ROLE_EDIT_FAIL = "010203";
    public final static String ROLE_IS_EXIST = "010204";

    public final static String PERMISSION_ADD_FAIL = "010301";
    public final static String PERMISSION_NOT_EXIST = "010302";
    public final static String PERMISSION_EDIT_FAIL = "010303";
    public final static String PERMISSION_IS_EXIST = "010304";

    public final static String USERROLE_ADD_FAIL = "010301";
    public final static String USERROLE_NOT_EXIST = "010302";
    public final static String USERROLE_EDIT_FAIL = "010303";
    public final static String USERROLE_IS_EXIST = "010304";
}
